package schedule {
	public class ScheduleLoader {
		[Embed(source="groups\\902.xml", mimeType="application/octet-stream")]
		private static const Schedule902Class:Class;
		[Embed(source="groups\\904.xml", mimeType="application/octet-stream")]
		private static const Schedule904Class:Class;
		[Embed(source="groups\\905.xml", mimeType="application/octet-stream")]
		private static const Schedule905Class:Class;
		[Embed(source="groups\\911.xml", mimeType="application/octet-stream")]
		private static const Schedule911Class:Class;
		[Embed(source="groups\\925.xml", mimeType="application/octet-stream")]
		private static const Schedule925Class:Class;
		[Embed(source="groups\\926.xml", mimeType="application/octet-stream")]
		private static const Schedule926Class:Class;

		private static var cache:Object = {
			"902" : new Schedule902Class (),
			"904" : new Schedule904Class (),
			"905" : new Schedule905Class (),
			"911" : new Schedule911Class (),
			"925" : new Schedule925Class (),
			"926" : new Schedule926Class ()
		};

		public static function exists(group:int):Boolean
		{
			return cache.hasOwnProperty(group.toString());	
		}
		
		public static function getXML(group:int):XML
		{
			return XML(cache[group.toString()]);	
		}
	}
}